<?php
/********************************************************************
 *	Author:
 *		Jestery Liu <jestery@gmail.com>
 *		http://www.pte.cn
 *
 *	File:			index.php
 *	Create Date:	2006-12-24 22:36:10 CST
 *******************************************************************/
error_reporting(E_ALL);
set_time_limit(5);
set_magic_quotes_runtime(0);
date_default_timezone_set('Asia/Shanghai');
require_once('PTE/PTE.php');
include_once(PTE::getLoaderFile());
PTE::setProjectPath(dirname(__FILE__));
PTE::setApplicationsPath(PTE::getProjectPath().'applications');
PTE::setUserDefinedClassesPath(PTE::getProjectPath().'classes');
Loader::loadCoreLibClass('Dispatcher');
Loader::loadCoreLibClass('Module');
Loader::loadUserClass('MyUrlMapper');
$dispatcher = new Dispatcher(new MyUrlMapper());
$dispatcher->dispatch();

/* vim: set ts=4 sw=4 ff=unix: */
